window: Unrealize renderer before children
authorMatthias Clasen <mclasen@redhat.com>
Tue, 22 Oct 2019 23:52:14 +0000 (19:52 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 23 Oct 2019 00:28:28 +0000 (20:28 -0400)
commit0284d40e24586278d3997ab2ace145ba16cbd9cc
tree1a9b8669e4edbb5d1b5d75f7ef0e4e07d2b0f9dd
parentffaf26fdf5d8f2d6b88a50b175479cc45969ba0a
window: Unrealize renderer before children

Unrealize the GSK renderer before destroying children.
This makes the renderer drop any texture caches that
it might have, so that we don't needlessly download
them when releasing the widget-side holder objects.

As a fortunate side effect, this fixes crashes on
exit with GtkGLArea-containing windows under Wayland.
gtk/gtkwindow.c